
{extend name="layouts/defatul" /}  <!--模板继承defatul，减少代码复用-->

{block name="title"}用户找回密码{/block}<!--忘记密码 -->

{block name="content"}
<div class="row">
  <div class="offset-md-2 col-md-8">
      <div class="card">
        <div class="card-header h5 text-center">
          <i class="fa fa-user-circle-o text-success"></i>&nbsp;用户找回密码
        </div>
        <div class="card-body">
          {include file="shared/_errors" /}
          <form method="post" action="{:url('password.email')}">
            {:token_field()}<!--防止CSRF攻击-->

            <div class="mb-3">
              <label for="email" class="form-label">邮箱</label>
              <input type="email" required maxlength="255" value="{:session('old.email')}"
                     placeholder="请输入您的邮箱账号" class="form-control" id="email" name="email" >
            </div>

            <div class="mb-3 d-flex justify-content-center">
              <button type="submit" class="btn btn-primary" >发送找回密码链接到邮件</button>
            </div>
          </form>
        </div>

      </div>
  </div>
</div>
{/block}